package com.lzhsite.technology.designPattern.decorate.PrizeDemo;

import java.util.Date;

public abstract class Decorator extends Component
{
    protected Component component;

    protected Decorator(Component component)
    {
        this.component = component;
    }

    public double calculatePrize(String user, Date begin, Date end)
    {
        return component.calculatePrize(user, begin, end);
    }
}
